package com.lnyt.util.factroy;

import com.lnyt.pojo.robot.OutputRobot;
import org.springframework.stereotype.Component;


@Component
public class OutputRobotFactroy {
    public static OutputRobot creator(String key, String info, String loc, String userId) {
        OutputRobot outputRobot = new OutputRobot();

        outputRobot.setKey(key);
        outputRobot.setInfo(info);
        outputRobot.setLoc(loc);
        outputRobot.setUserid(userId);

        return outputRobot;
    }
}
